package com.fitbet.wechat.service;

import com.fitbet.entity.user.User;

public interface UserService {
    
    /**
     * 
     * @param unionid
     * @return
     */
    public User loadUser(String unionid);
    
    /**
     * 
     * @param user
     * @param mobile
     */
    public void bindUserMobile(User user, String mobile);
    
    /**
     * 
     * @param unionid
     * @param nickname
     * @param avatar
     * @param openid
     * @return
     */
    public User create(String unionid, String nickname, String avatar, String openid);
    
    /**
     * 
     * @param id
     * @return
     */
    public User load(Long id);

}
